package com.shrct.businessprocess.project.proxy;

import com.shrct.businessprocess.project.proxy.RCProjectAction;
import com.uniquesoft.gwt.shared.GWTNamedEntity;
import edu.fudan.mylang.pf.ProxyTarget;

@ProxyTarget("com.shrct.businessprocess.project.RCProject")
public class RCProjectProxy extends GWTNamedEntity {
  public RCProjectProxy() {
    this.setClazzName("com.shrct.businessprocess.project.RCProject");
  }
  
  private String internalStatus;
  
  public void setInternalStatus(final String status) {
    this.internalStatus = status;
  }
  
  public String getInternalStatus() {
    return this.internalStatus;
  }
  
  public Boolean isActionValid(final RCProjectAction action) {
    return RCProjectManager.isActionValid(action,internalStatus);
  }
}
